package com.example.template;

import java.util.Date;

import org.apache.commons.lang3.time.DateFormatUtils;

import lombok.Data;
import lombok.experimental.Accessors;

@Data
@Accessors(chain=true)
public class TemplateConfig {

	private String projectPackage;
	private String modelName;
	private String modelCName;
	private String outPath = System.getProperty("user.dir")+"/dist/";
	private String authName = "wangshb";
	private String createDate = DateFormatUtils.format(new Date(),"yyyy-MM-dd");
	
	public String getLowModelName() {
		char[] charArray = modelName.toCharArray();
		charArray[0] = Character.toLowerCase(charArray[0]);
		return new String(charArray);
	}
	
	public String getUpModelName() {
		return modelName.toUpperCase();
	}
}
